home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete Guide to Dogs
/
Complete Guide to Dogs (1997)(SoftKey)[Mac-PC].iso
/
pc
/
install.dat
< prev
next >
Wrap
Text File
|
1997-05-10
|
12KB
|
405 lines
//***************************************************************
//***************************************************************
//
// Installation script for Complete Guide to Dogs.
//
// 1. Verify that the system has:
//
// a. a 486 or a Pentium processor
// b. at least 8 Megs of RAM
// c. a VGA or better video card
// d. a CD ROM drive
// e. the MSCDEX CD ROM driver loaded and
// its version is 2.0 or later.
//
// 2. Optionally install the OMO Player 1.1.2 into
// a user-selected directory.
//
// 3. Create the Dog Guide program group containing the
// Guide to Dogs product icon.
//
// 4. Install QuickTime for Windows 2.1.1 into the Windows
// directory.
//
// 5. Display the README.TXT file.
//
//***************************************************************
//***************************************************************
@DefineProject
@Name = "Complete Guide to Dogs"
@Version = "1.0 for Windows"
@OutDrive = C
@SubDir = "\\omoplay"
@Requires @HardDisk
@EndProject
@DefineVars
@Integer @Meg = (1024*1024)
@Integer @MemoryM = (@EXTTotal/@Meg + 1)
@Integer @V = @VideoCard
@Qstring @Command = ""
@Qstring @QTVersion = "2.1.1"
@Integer @QTFree = 6000000 // free disk bytes for QuickTime
@Qstring @QTFreeMS = "6"
@Qstring @PlayerEXE = "omoplay.exe"
@Qstring @PlayerVersion = "1.1.2"
@Integer @PlayerFree = 1810000 // free disk bytes for Player
@Qstring @PlayerFreeMS = "1.8"
@Drive @PlayerDrive = Z // drive for Player (reset below)
@Drive @CDDrive = Z // CD ROM drive (reset below)
@Integer @BothFree = (@QTFree + @PlayerFree)
@Qstring @ProgGroup = "Dog Guide"
@Qstring @Product = "Complete Guide to Dogs"
@Qstring @Stack = "dogguide"
@Integer @InstallPlayer = 100
@Integer @NoInstallPlayer = 200
@EndVars
//----------------------------------------------------------------------
// Initial startup screen
//----------------------------------------------------------------------
@Display
Welcome to the installer for @Name.
This program will install the files onto your hard disk
that are necessary to run the @Product.
It can install the Oracle Media Objects Player version @PlayerVersion
onto your hard disk. The OMO Player is the program that
you will run to interact with the @Product.
You can also choose not to install the OMO Player,
and run it directly from the CD instead.
The installer will also install QuickTime for Windows
version @QTVersion into your WINDOWS directory. The
OMO Player will automatically run QuickTime to display
movies and slide shows. You must install QuickTime onto
your hard disk.
At the end of the installation, you can view
the README.TXT file.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
//----------------------------------------------------------------------
// System info screen
//----------------------------------------------------------------------
@Display
First, some important information about your system:
Processor: 80@CPU (or later)
Total memory: @MemoryM megabytes
CD ROM drive: @If (@CDRomTotal < 1) NONE @Else @CDRomFirst: @EndIf
CD ROM driver version: @If (@CDRomMajor == 0) NOT LOADED @Else MSCDEX @CDRomMajor.@CDRomMinor @EndIf
Video card: @If (@V == 77 || @V == 72) MONO @ElseIf (@V == 69) EGA @ElseIf (@V == 86) VGA or better @ElseIf (@V == 67) CGA @Else UNKNOWN @EndIf
Display driver: @GetINI("boot", "display.drv", "system.ini")
Windows directory: @WindowsDrive:@WindowsDir
Windows version: @WindowsMajor.@WindowsMinor
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
//----------------------------------------------------------------------
// Verify minimum system requirements
//----------------------------------------------------------------------
@If (@CDRomTotal < 1)
@Display
Your system must have a CD ROM drive to install and run
@Name.
This installation will now terminate.
@Pause
@Exit
@EndDisplay
@Else
@CDDrive = @CDRomFirst // set the CD ROM drive letter
@EndIf
@If (@DiskFree(@WindowsDrive) < @QTFree)
@Display
You need at least @QTFreeMS megabytes free on the
Windows drive @WindowsDrive: to install QuickTime for Windows.
This installation will now terminate.
@Pause
@Exit
@EndDisplay
@EndIf
@If (@CDRomMajor < 2)
@Display
You will need version 2.0 or later of the CD ROM driver MSCDEX
to run @Name.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@EndIf
@If (@CPU < 386)
@Display
Your system will need at least a 33 MHz 80486 processor
to run @Name.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@EndIf
@If (@MemoryM < 8)
@Display
Your system will need at least 8 megabytes of memory
to run @Name.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@EndIf
@If (@V != 86)
@Display
Your system will need a VGA or better monitor
to run @Name.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@EndIf
//----------------------------------------------------------------------
// Ask if the user wants to install the player onto a hard drive
//----------------------------------------------------------------------
@Display
You can install the OMO Player onto a hard disk drive,
but it will require @PlayerFreeMS megabytes.
To save disk space, you can run the OMO Player from
the CD ROM drive, but it will perform slower.
The next screen will ask whether or not you want
to install the OMO Player onto your hard drive.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@GetOption
Please select an option with the mouse or arrow keys:
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Option @InstallPlayer = "Install the OMO Player."
@Option @NoInstallPlayer = "Leave it on the CD."
@EndOption
@If (@NoInstallPlayer [= @Option)
@PlayerDrive = @CDDrive
@Goto SKIP_GET_OUT_DRIVE
@EndIf
//----------------------------------------------------------------------
// Prompt for the target drive and directory
//----------------------------------------------------------------------
GET_OUT_DRIVE:
@GetOutDrive
Onto which drive do you wish to install the OMO Player?
@Suppress(0, 1) // no floppies
@Suppress(0, 16) // no CD ROMs
Please select a drive with the mouse or with arrow keys.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@EndOutDrive
@If (@Removable(@OutDrive))
@Display
@OutDrive: is a removable drive.
The next screen will ask you
to pick another hard drive.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@Goto GET_OUT_DRIVE
@EndDisplay
@ElseIf ((@OutDrive == @WindowsDrive) && (@DiskFree(@OutDrive) < @BothFree))
@Display
@BothFree bytes are required to install both QuickTime
and the OMO Player, but only @DiskFree(@OutDrive) bytes
are free on drive @OutDrive.
The next screen will ask you to pick another hard drive
for the OMO Player.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@Goto GET_OUT_DRIVE
@EndDisplay
@ElseIf (@DiskFree(@OutDrive) < @PlayerFree)
@Display
@PlayerFree bytes are required to install
the OMO Player, but only @DiskFree(@OutDrive) bytes
are free on drive @OutDrive.
The next screen will ask you
to pick another hard drive.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@Goto GET_OUT_DRIVE
@EndDisplay
@EndIf
@PlayerDrive = @OutDrive
@GetSubDir
Into which directory on the @OutDrive: drive
do you wish to install the OMO Player?
You can replace the directory path shown below.
Then press OK to continue the installation,
or press Cancel to terminate immediately.
@Prompt = "Which directory?"
@EndSubDir
SKIP_GET_OUT_DRIVE:
//----------------------------------------------------------------------
// Create the Dog Guide Program Manager group and product icon
//----------------------------------------------------------------------
@If (@InstallPlayer [= @Option)
@Display
The installer is now ready to create the
@ProgGroup Program Manager group and the
@Product icon.
It will then install the OMO Player onto your hard disk.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@Else
@Display
The installer is now ready to create the
@ProgGroup Program Manager group and the
@Product icon.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@EndDisplay
@EndIf
@Command = "@PlayerDrive:@SubDir\\@PlayerEXE @CDDrive:\\@Stack"
@ProgramManager("[CreateGroup(@ProgGroup)] [AddItem(@Command, @Product)]")
//----------------------------------------------------------------------
// Optionally install the OMO Player
//----------------------------------------------------------------------
@DefineDisk
@Label = "Complete Guide to Dogs"
@File omoplay\omoplay.exe @Out *.* @Option @InstallPlayer
@File omoplay\library\system @Out library\system @Option @InstallPlayer
@File omoplay\objects\aomocr_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omobmp_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omobtn_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omofld_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omogrp_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omolst_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\Omomcqtp.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omomov_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omopal_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omopat_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omoshp_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omosnd_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\omotmr_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\xmodst_p.mox @Out objects\*.* @Option @InstallPlayer
@File omoplay\objects\dogguide.xcm @Out objects\*.* @Option @InstallPlayer
@EndDisk
//----------------------------------------------------------------------
// Install QuickTime for Windows using Apple's installer
// Optionally view the README.TXT file
//----------------------------------------------------------------------
@Finish
The installer is now ready to install QuickTime for Windows
into the Windows directory.
Press OK to continue the installation,
or press Cancel to terminate immediately.
@Pause
@WinExec("@CDDrive:\\qtw211\\qt16.exe", 1, -1) // wait
@Cls
Congratulations! You've successfully installed
@Name.
Now press either OK or Cancel, and the installation
will exit. You can then read the "readme.txt" file.
@Pause
@WinExec("@WindowsDrive:\\@WindowsDir\\notepad @CDDrive:\\readme.txt", 1) // don't wait
@EndFinish